package com.yzg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yzg.pojo.ProductCategory;

import java.util.List;

/**
* @Author: decade
* @Description: ${description}
* @Date: 2021/1/9 17:49
**/
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(ProductCategory record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(ProductCategory record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    ProductCategory selectByPrimaryKey(Long id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(ProductCategory record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(ProductCategory record);

    //查询商品分类列表二级树形
    List<ProductCategory> pageList();
}